/**
 * Created with JetBrains PhpStorm.
 * User: Nhan
 * Date: 8/13/12
 * Time: 9:43 AM
 * To change this template use File | Settings | File Templates.
 */
jQuery(document).ready(function($) {
    /*
     * Mega Menu
     */
    jQuery('#mega-menu-1').dcMegaMenu({
        rowItems: '4',
        speed: 'fast',
        effect: 'slide',
        event: 'hover',
        fullWidth: true    });
    /*
     * Carousel Lite
     */
    $('.random-post > ul > ul').remove();
    jQuery(".random-post").jCarouselLite({
            visible:4,
            vertical: true,
            auto: 800,
            speed: 2500
    });

    jQuery('#slides').slides({
        play: 5000,
        pause: 2500
    });

    /*
    * Edit text of search panel
     */
    jQuery('.searchby').each(function(index,elem) {
       if(index==0) jQuery(this).text('Vị trí');
        else if(index == 1) jQuery(this).text('Tiền thuê');
        else if(index == 2) jQuery(this).text('Diện tích');
        else if(index == 3) jQuery(this).text('Kiểu nhà trọ');
    });

    /*
     * Style Single Info
     */
    jQuery('.item-single-info > li:even').css('background-color','#DBDBDB');
    jQuery('.item-single-info > li:odd').css({
        'color':'#000',
        'background-color': '#EDEDED'

    });

});